package com.yykj.tencent.oss.client.feign;

import com.yykj.common.vo.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(name = "oss-server")
public interface TencentOssClient {
    @PostMapping(value = "/tencent/cos/upload",consumes = MediaType.MULTIPART_FORM_DATA_VALUE )
    ResultVO<String> uploadFile(@RequestPart("file") MultipartFile file);

}
